package com.csf.sr.api;

public class ServiceUrl {

	private Class contract;
	
	private int serviceId;

	public ServiceUrl(Class contract) {
		super();
		this.contract = contract;
	}

	public Class getContract() {
		return contract;
	}

	public void setContract(Class contract) {
		this.contract = contract;
	}

	public int getServiceId() {
		return serviceId;
	}

	public void setServiceId(int serviceId) {
		this.serviceId = serviceId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + serviceId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServiceUrl other = (ServiceUrl) obj;
		if (serviceId != other.serviceId)
			return false;
		return true;
	}
	
}
